package com.flowershop.service;

import com.flowershop.dao.CartDao;
import com.flowershop.model.CartItem;
import java.util.List;

public class CartService {
    private CartDao cartDao = new CartDao();
    
    public List<CartItem> getCartItems(Integer userId) {
        return cartDao.getCartItems(userId);
    }
    
    public boolean addToCart(CartItem item) {
        return cartDao.addToCart(item);
    }
    
    public boolean updateQuantity(Integer id, Integer quantity) {
        return cartDao.updateQuantity(id, quantity);
    }
    
    public boolean removeFromCart(Integer id) {
        return cartDao.removeFromCart(id);
    }
} 